package guda.demox.biz.impl;


import guda.demox.biz.UserService;
import guda.demox.dal.UserDAO;
import guda.demox.dal.model.UserDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * Created by well on 2017/3/20.
 */
@Component
public class UserServiceImpl implements UserService {


    @Autowired
    private UserDAO userDAO;

    @Override
    public UserDO index() {
        return userDAO.getUser("admin");
    }
}
